namespace go industics.blockchain.sale

include "base.thrift"

service SaleService {
    base.BaseGetResp GetSaleContract(1:base.BaseGetReq req)
    base.BaseGetResp GetSaleOrder(1:base.BaseGetReq req)
    base.BaseGetResp GetSaleDelivery(1:base.BaseGetReq req)
    base.BaseGetResp GetSaleReturn(1:base.BaseGetReq req)

    base.BaseGetResp GetSaleContractHistory(1:base.BaseGetReq req)
    base.BaseGetResp GetSaleOrderHistory(1:base.BaseGetReq req)
    base.BaseGetResp GetSaleDeliveryHistory(1:base.BaseGetReq req)
    base.BaseGetResp GetSaleReturnHistory(1:base.BaseGetReq req)

    base.BaseGetResp GetSaleContractByRange(1:base.BaseRangeGetReq req)
    base.BaseGetResp GetSaleOrderByRange(1:base.BaseRangeGetReq req)
    base.BaseGetResp GetSaleDeliveryByRange(1:base.BaseRangeGetReq req)
    base.BaseGetResp GetSaleReturnByRange(1:base.BaseRangeGetReq req)

    base.BasePostResp CreateSaleContract(1:base.BasePostReq req)
    base.BasePostResp CreateSaleOrder(1:base.BasePostReq req)
    base.BasePostResp CreateSaleDelivery(1:base.BasePostReq req)
    base.BasePostResp CreateSaleReturn(1:base.BasePostReq req)

    base.BasePutResp UpdateSaleContract(1:base.BasePutReq req)
    base.BasePutResp UpdateSaleOrder(1:base.BasePutReq req)
    base.BasePutResp UpdateSaleDelivery(1:base.BasePutReq req)
    base.BasePutResp UpdateSaleReturn(1:base.BasePutReq req)

    base.BaseDeleteResp DeleteSaleContract(1:base.BaseDeleteReq req)
    base.BaseDeleteResp DeleteSaleOrder(1:base.BaseDeleteReq req)
    base.BaseDeleteResp DeleteSaleDelivery(1:base.BaseDeleteReq req)
    base.BaseDeleteResp DeleteSaleReturn(1:base.BaseDeleteReq req)
}